
package com.abc.bookstore;

import java.io.IOException;

import com.argot.TypeException;
import com.colony.remote.RemoteException;


public interface IBookstore
{
	public static final String TYPENAME = "bookstore";

    public boolean addBook(Book book)
    throws RemoteException;
    
    public void removeBook(String isbn) 
    throws BookNotFoundException, RemoteException;
    
    public Book[] findBooksByAuthor(String name)
    throws RemoteException;
    
    public Book getBookByIsbn(String isbn)
    throws BookNotFoundException, RemoteException;
        
    public Book[] getAllBooks() throws RemoteException;
    
    public void loadBooks( String filename )
    throws IOException, TypeException, RemoteException;
    
    public void saveBooks( String filename )
    throws IOException, TypeException, RemoteException;
}